<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<div>
    <%!
        public double getArea(double radius){
            return radius*radius*3.14;
        }
        public double getPerimeter(double radius){
            return radius*2*3.14;
        }
    %>
    圆的面积：<%=getArea(5.0)%>
    <br>
    圆的周长：<%=getPerimeter(5.0)%>
</div>
</body>
</html>